<!doctype html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">  
    <title>WeAppViews</title> 
    <link href="icons/css/font-awesome.min.css" rel="stylesheet"> 
   	<link href="styles.css" rel="stylesheet">
    <style type="text/css">
    	body{padding:0px;margin:0px}
     
    </style>
    <script type="text/javascript" language="javascript" src="unittest/unittest.nocache.js"></script>
  </head>  
  <body> 
  	<p>请使用Chrome系浏览器并打开开发者工具和控制台，查看测试结果</p>
 	 <script type="text/javascript">
	 	window.addEventListener("load",function(){
			 {
				var ut = new UnitTest("Unit Test Demo 1",true);
	 			Asserts.assertTrue("测试 Boolean ",true); 
	 			assertTrue("测试 Boolean ",true);
	 			assertEquals("测试  String 123 ","123","123");
	 			Asserts.assertEquals("测试  String","1234","1234");
	 			Asserts.assertEquals("测试  number ",123,123);
	 			var a = {};
	 			var b = a;
	 			Asserts.assertEquals("测试  Object ",a,b);
	 			ut.finish();
			 }
			 {
				var ut = new UnitTest("单元测试 2",true);
	 			assertTrue("测试 Boolean ",true); 
	 			assertEquals("测试  按钮组件 ","123","123");
  	 			ut.pageEl().innerHTML="<button>被测试的组件1</button>";
	 			assertTrue("测试 Boolean ",true);
	 			assertEquals("测试  String 123 ","123","123"); 
	 			assertEquals("测试  number ",123,123); 
	 			ut.finish();
			 }
		 }); 
 	 </script>
  </body>
</html>
